﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Register
{
    public partial class RegCodeCreator : Form
    {
        public RegCodeCreator()
        {
            InitializeComponent();
        }

        private void BtnCreate_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(TxtMachineCode.Text.Trim()))
            {
                MessageBox.Show("请输入机器码。", "提示");
                return;
            }

            TxtRegCode.Text = 
                NPU.TM.CommonClass.MethodClass.StringEncrypter.Encrypt(TxtMachineCode.Text.Trim());

        }
    }
}
